﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Rule
    {
        public string Gegular { get; set; }

        public Rule(string gegular)
        {
            Gegular = gegular;
        }
        public Rule() { }

        public void SayHai()
        {
            Random ran = new Random();
            int a = ran.Next(1, 4);
            if (a == 1)
            {
                Gegular = "剪刀";
            }
            else if (a == 2)
            {
                Gegular = "石头";
            }
            else if (a == 3)
            {
                Gegular = "布";
            }
            Console.WriteLine($": 出拳：{Gegular}");
        }
    }
}
